package createModel.BuilderModel.directorBuilderPlayers02.convert;

import createModel.BuilderModel.directorBuilderPlayers02.AbstaractBasicConfigBuilder;
import createModel.BuilderModel.directorBuilderPlayers02.pojo.BasicConfigDto;

public class BasicConfigDtoConvertBasicConfig implements Convert<BasicConfigDto> {
    @Override
    public void apply(AbstaractBasicConfigBuilder builder,
                      BasicConfigDto source) throws Exception {
        builder.buildDataValue(source.getDataValue());
        builder.buildEmissionFactorName(source.getEmissionFactorName());
        builder.buildFactorGrade(source.getFactorGrade());
        builder.buildGhgTypeCode(source.getGhgTypeCode());
        builder.buildId(source.getId());
        builder.buildMolecularUnit(source.getMolecularUnit());
        builder.buildReductionEmissionFactorId(source.getReductionEmissionFactorId());
        builder.buildUpdateAt(source.getUpdateAt());
        builder.builddEnominatorUnit(source.getDenominatorUnit());
    }
}
